package com.koocloud.electroplatemanage.mapper;

import com.koocloud.electroplatemanage.common.pojo.ResponseTemplate;
import com.koocloud.electroplatemanage.pojo.AnalysisItems;
import com.koocloud.electroplatemanage.pojo.OriginItems;
import com.koocloud.electroplatemanage.pojo.TypeWorkVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @program:
 * @description:
 * @author: wjx
 * @create: 2020/11/17 11:01
 */
@Mapper
public interface AnalysisItemsMapper {
    /**
     * 通过主键查询一条数据
     * @param pk
     * @return
     */
    AnalysisItems selectByPk(String pk);

    /**
     * 通过镀槽编号查询数据
     * @param tankNo
     * @return
     */
    List<AnalysisItems> selectByTankNo(String tankNo);

    /**
     * 插入一条数据
     * @param analysisItems
     * @return
     */
    int insert(AnalysisItems analysisItems);

    /**
     * 批量插入一组数据
     * @param listAnalysisItems
     * @return
     */
    int batchInsert(List<AnalysisItems> listAnalysisItems);

    /**
     * 批量更新一条数据
     * @param analysisItemsList
     * @return
     */
    int batchUpdate(List<AnalysisItems> analysisItemsList);

    /**
     * 通过化验项目更新一条数据
     * @param analysisItems
     * @return
     */
    int updateByItems(AnalysisItems analysisItems);

    /**
     * 通过originItem来更新数据
     * @param originItems
     * @return
     */
    int oBatchUpdate(String tankNo,String analysisItems,OriginItems originItems);

    /**
     * 通过OperateId查找数据
     * @param operateId
     * @return
     */
    List<AnalysisItems> selectByOperateId(int operateId);
}
